<%--
  Created by IntelliJ IDEA.
  User: WS
  Date: 2020/5/13
  Time: 17:09
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <script src="${pageContext.request.contextPath}/experiment04/jQuery/jquery-2.2.3.min.js"></script>
</head>
<body>
<div class="login-box-body">
    <p class="login-box-msg">登录</p>
    <span style="color: red">${msg}</span>
    <form action="${pageContext.request.contextPath}/experiment04/login" method="post">
        <div class="form-group has-feedback">
            <input name="name" type="text" class="form-control" placeholder="请输入用户名">
            <span class="glyphicon glyphicon-user form-control-feedback"></span>
        </div>
        <div class="form-group has-feedback">
            <input name="pwd" type="password" class="form-control" placeholder="请输入密码">
            <span class="glyphicon glyphicon-lock form-control-feedback"></span>
        </div>
        <div class="form-group has-feedback">
            <input name="ValidateCode" type="text" class="form-control" placeholder="请输入验证码">
            <span class="glyphicon form-control-feedback" style="right: 28px;top: 2px;">
                    <img id="check" src="${pageContext.request.contextPath}/experiment04/img/imgCode" alt="验证码"/>
                </span>
            <a style="margin-left: 230px;"
               onclick="$('#check').attr('src','${pageContext.request.contextPath}/experiment04/img/imgCode?'+Math.random());">看不清换一张</a>
        </div>
        <div class="row">
            <div class="col-xs-8">
                <div class="checkbox icheck">
                    <label><input type="checkbox"> 记住 下次自动登录</label>
                </div>
            </div>
            <!-- /.col -->
            <div class="col-xs-4">
                <button type="submit" class="btn btn-primary btn-block btn-flat">登录</button>
            </div>
            <!-- /.col -->
        </div>
    </form>
</div>
</body>
</html>
